/**
 * Created by TAO on 2020/04/15 10:28.
 */
import request from '@/plugin/axios'
export function GetList (page) {
  const url = '/AdminIndex/typeLists'
  return request.post(url, { page })
}
export function typeUpdate (data = {}) {
  const url = '/AdminIndex/typeUpdate'
  return request.post(url, data)
}
export function typeEdit (data = {}) {
  const url = '/AdminIndex/typeEdit'
  return request.post(url, data)
}
// 活动
export function activityLists (page, state) {
  const url = '/AdminIndex/activityLists'
  return request.post(url, { page, state })
}
export function activityUpdate (data = {}) {
  const url = '/AdminIndex/activityUpdate'
  return request.post(url, data)
}
export function activityEdit (data = {}) {
  const url = '/AdminIndex/activityEdit'
  return request.post(url, data)
}